package cn.com.generaldata.os.importpojo;

import com.sun.xml.internal.bind.CycleRecoverable;

public class BillboardRule implements java.io.Serializable, CycleRecoverable {

	private static final long serialVersionUID = -542591253071887815L;

	private String id;
	private User operator;
	private String billboardTitle;
	private String billboardContent;
	private String userIds;
	private byte dateType;
	private int offset;

	public BillboardRule() {
	}

	public BillboardRule(String id, User operator, String billboardTitle, String billboardContent, String userIds,
			byte dateType, int offset) {
		this.id = id;
		this.operator = operator;
		this.billboardTitle = billboardTitle;
		this.billboardContent = billboardContent;
		this.userIds = userIds;
		this.dateType = dateType;
		this.offset = offset;
	}

	/**
	 * 解决CXF循环引用问题.
	 * 
	 * @param arg0
	 * @return
	 */
	@Override
	public Object onCycleDetected(Context arg0) {
		BillboardRule temp = new BillboardRule();
		temp.setId(id);
		return temp;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public User getOperator() {
		return operator;
	}

	public void setOperator(User operator) {
		this.operator = operator;
	}

	public String getBillboardTitle() {
		return billboardTitle;
	}

	public void setBillboardTitle(String billboardTitle) {
		this.billboardTitle = billboardTitle;
	}

	public String getBillboardContent() {
		return billboardContent;
	}

	public void setBillboardContent(String billboardContent) {
		this.billboardContent = billboardContent;
	}

	public String getUserIds() {
		return userIds;
	}

	public void setUserIds(String userIds) {
		this.userIds = userIds;
	}

	public byte getDateType() {
		return dateType;
	}

	public void setDateType(byte dateType) {
		this.dateType = dateType;
	}

	public int getOffset() {
		return offset;
	}

	public void setOffset(int offset) {
		this.offset = offset;
	}

}
